<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Server_model extends MY_Model {
	
	public function __construct(){
		parent::__construct();	
		$this->setTableName('u_m_server');
	}
	
	public function list4Classid($classid){
		$re = $this->select('id,title,discount','sever_cat='.$classid,'id desc');
		return $re;
	}
	public function list4Preferential(){
		$re = $this->select('id,title,discount','discount<10','id desc');
		return $re;
	} 
	
	public function serverInfo($id){
		$re = $this->select('id,title,content,price,discount','id='.$id,'id desc','1');
		return $re[0];
	}
	
}
?>